﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Xeml.Document;

namespace Xid.Controls.SampleCompiler
{
    public partial class FkmPanelCtrl : UserControl
    {


        public int FkmTop
        {
            get { return _fkm.Top; }
            
            set 
            { 
                _fkm.Top = Math.Min(value, this.Height - _fkm.Height) ; 
            }
        }


        public ForeignKeyMap KeyMap
        {
            get { return _fkm.KeyMap; }
            set        
            { 
                
                _fkm.KeyMap = value; 
            }

        }


       
        public ForeignKeyMapCtrl KeyMapCtrl
        {
            get { return _fkm; }
      
        }



        ForeignKeyMapCtrl _fkm;
        public FkmPanelCtrl()
        {
            InitializeComponent();

            _fkm = new ForeignKeyMapCtrl();
            _fkm.KeyMap = null;

            this.kryptonPanel1.Controls.Add(_fkm);
            FkmTop = 10;
            _fkm.Left = 1;
            _fkm.Width = this.Width - 2;
            _fkm.Anchor = AnchorStyles.Left | AnchorStyles.Right;


        }
    }
}
